<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/5/29
  Time: 11:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="user" value="${sessionScope.user}"/>
<c:set var="space" value="${sessionScope.space}"/>
<div class="sidebar-scroll">
    <nav>
        <ul>
            <div class="iframe_link"><a href="#">
                <img src="../images/${space.spaceimage}" /><div class="title">${space.name}</div></a>
            </div>
            <li><a href="/space/spacename?userId=${space.userId}&space_id=${space.id}&id=${user.id}" id="lname-focus1" onfocus="setStyle(this.id)" onblur="loss(this.id)">主页</a></li>
            <li><a href="/resource/space-resource" id="lname-focus2" onfocus="setStyle(this.id)" onblur="loss(this.id)">资源区<span>${sessionScope.resourceTotal}</span></a></li>
            <li><a href="/discuss/space-discuss" id="lname-focus3" onfocus="setStyle(this.id)" onblur="loss(this.id)">讨论区<span>${sessionScope.discussTotal}</span></a></li>
            <li><a href="/contribute/space-contribute" id="lname-focus4" onfocus="setStyle(this.id)" onblur="loss(this.id)">贡献区<span>${sessionScope.contributeTotal}</span></a></li>
            <li><a href="/member/space-member" id="lname-focus5" onfocus="setStyle(this.id)" onblur="loss(this.id)">成员<span>${sessionScope.memberCount}</span></a></li>
            <li><a href="/index/space-manage?userId=${space.userId}&name=${space.name}" id="lname-focus6" onfocus="setStyle(this.id)" onblur="loss(this.id)">设置</a></li>
        </ul>
    </nav>
</div>
